﻿using Godot;
public class State(Player player, StateMachine stateMachine, AnimatedSprite3D animation3D)
{
	protected readonly Player player = player;
	protected readonly StateMachine stateMachine = stateMachine;
	protected readonly AnimatedSprite3D animation = animation3D;

	// 进入状态后持续的时间
	protected double duration = 0;
	
	public virtual void Enter()
	{
		GD.Print("Start" + this);

		duration = 0;
	}

	public virtual void Process(double delta)
	{
		duration += delta;
	}

	public virtual void PhysicsProcess(double delta)
	{
		
	}

	public virtual void Exit()
	{
		
	}
}